home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / awt / AttributeValue.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  556 b   |  24 lines

  1. package java.awt;
  2.  
  3. import sun.awt.DebugHelper;
  4.  
  5. abstract class AttributeValue {
  6.    private final int value;
  7.    private final String[] names;
  8.    private static final DebugHelper dbg = DebugHelper.create(AttributeValue.class);
  9.  
  10.    protected AttributeValue(int var1, String[] var2) {
  11.       DebugHelper var10000 = dbg;
  12.       this.value = var1;
  13.       this.names = var2;
  14.    }
  15.  
  16.    public int hashCode() {
  17.       return this.value;
  18.    }
  19.  
  20.    public String toString() {
  21.       return this.names[this.value];
  22.    }
  23. }
  24.